<!doctype html>
<html lang="zh-CH">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	{{--<meta name="viewport" content="width=device-width, initial-scale=1">--}}
	<title>央票通</title>
	<link rel="stylesheet" href="./resource/css/index.css">
	<link rel="stylesheet" href="./resource/css/user.css">
</head>
<body>
<?php
$user_info = session_get(UserEnum::USER_INFO_SESSION_KEY);
?>
<!-- 头部 -->
@include('common.index_head')
		<!-- 个人中心 -->
<div class="cont-user">

	<!-- 个人中心头部 -->
	@include('common.user_head')
	<div class="user-center">
		<div class="main">

			<!-- 个人中心列表 -->
			@include('common.user_left')
			<div class="user-container left">
				<div class="user-title user-password user-invite">
					<div class="title">
						<div class="h left">邀请好友</div>
					</div>
					<div class="invite">
						<img src="./resource/img/user_invite.png" alt="">
						{{--<a href="javascript:;" class="btn btn-invite">立即邀请</a>--}}
					</div>
					<div class="invite-til">推荐好友方式</div>
					<div class="invite-share">
						<div class="share-p">
							<span><img src="./resource/img/user_pass_pic.png" alt=""></span>
							复制链接，即可分享给好友，通过此链接注册成功后现金券券将进入您的帐户中
						</div>
						<div class="share-a">
							<!--<span id="J_copy_p">{{$url}}</span>-->
							<input type="text" id="J_copy_p"  value="{{$url}}"/>
							<div class="btn btn-copy">
								<a id="btn-copy"  onClick="copyUrl2()" href="javascript:;">复制链接</a>
								<!--<input id="btn-copy"  type="button"  value="复制链接" />-->
							</div>
						</div>
						<div class="share-bai">
							<div class="til">
								<span><img src="./resource/img/user_pass_pic.png" alt=""></span>
								将您的手机号告知好友，请好友在注册时在推荐人”输入框时输入您的手机号“
							</div>
							<div class="bai-p">{{$user_info->mobile}}</div>
						</div>
						<div class="share-info">
							<div class="til">邀请说明：</div>
							<p>
								1.有效用户定义－被邀请好友注册30日内累计投资达到100元及以上<br/>
								2.符合奖励情况的用户将于好友投资后的10个工作日内发放到邀请人账户中<br/>
								3.如有问题请联系客服，热线电话：4000-678-797<br/>
								4.活动最终解释权归央票通所有
							</p>
						</div>
					</div>
					<div class="invite-box">
						<div class="index-money">
							赚取金额（元）：<span>{{$sum}}</span>
							邀请好友（个）：<span>{{$count}}</span>
						</div>
						<div class="pass-cont">
							<table>
								<thead>
								<tr>
									<td>好友昵称</td>
									<td>注册时间</td>
									<td>注册奖励</td>
									<td>邀请状态</td>
								</tr>
								</thead>
								<tbody>
								@if(!empty($reward))
									@foreach($reward as $k=>$v)
										<tr>
											<td>{{$v->user_name}}</td>
											<td>{{date('Y-m-d',$v->time)}}</td>
											<td>{{$v->reward}}元</td>
											<td>@if($v->statue==1)已经申请@endif</td>
										</tr>
									@endforeach
								@endif
								</tbody>
							</table>
						</div>
						
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- footer -->
@include('common.index_foot')

<script src="./resource/js/jquery-1.11.3.min.js"></script>
<script src="./resource/js/index.js"></script>
<script src="./resource/js/jquery.zclip.min.js"></script>
<script type="text/javascript">
	function copyUrl2()
	{
		var Url2=document.getElementById("J_copy_p");
		Url2.select(); // 选择对象
		document.execCommand("Copy"); // 执行浏览器复制命令
		alert("已复制好，可贴粘。");
	}
</script>
</body>
</html>